REPLICATION PROCEDURE

All results are obtained using R.
Results are obtained by running the four main scripts (in any order):
-v4_incl2017_main_28aug2024.R
-excl2017_main_28aug2024.R
-repl_10-23-18 network.R
-repl_1-22-18_network.R

Each of these four R scripts will require you to manually change the working directory (toward the top of the script).

Most of the results will be written (the figure as images, the tables as .tex files) to the results subfolder. Some results, however, were created by manually creating tex tables based on R output, or by saving figures from R using the dialog box in RStudio. These results are:
-Table 1: based on output of v4_incl2017_main_28aug2024.R, line 399
-Table 2: based on output of excl2017_main_28aug2024.R, line 28
-Table B1: based on output of repl_6-9-17 cleaning and pca.R, line 27
-Figure B1: figure in repl_6-9-17 cleaning and pca.R, line 31, saved via system dialog
-Table B2: based on output of v4_incl2017_main_28aug2024.R, line 99
-Figure B2: figure in v4_incl2017_main_28aug2024.R, line 103, saved via system dialog
-Tables C1, C2, C3: based on output of repl_1-22-18_network.R, line 148

OPERATING ENVIRONMENT

Software: R version 4.1.0 (2021-05-18); Platform: aarch64-apple-darwin20 (64-bit);
RStudio 2023.09.1+494
Operating system: macOS 14.6.1

LIST OF FILES

-v4_incl2017_main_28aug2024.R
Main script for dataset that includes 2017 data.

-excl2017_main_28aug2024.R
Main script for dataset that doesn't include 2017 data.
Calls the following subscripts:
--repl_6-9-17 cleaning and pca.R
--6-14-17 alt pca.R
--18aug24 neighborhood.R
--repl_2-07-20_histo.R
--18aug24 baltab.R
--repl_6-14-17 marginal effects.R
--6-27-17 neigh other list.R
--28aug24 inde conn list_plus.R
--replication_networkgraphs_17aug2024.R
--repl_6-14-17 inde conn list_11-5-18.R
--7sep24 basic list.R

-repl_10-23-18 network.R
Script that uses network data to plot network diagrams
Produces Figure 1

-repl_1-22-18_network.R
Script that uses network data to relate connectedness metric to network degree
Produces Tables D1, D2, D3